package com.liuluo.homework1025hou.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
import com.liuluo.homework1025hou.domain.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liuluo.homework1025hou.domain.Customer
import org.apache.ibatis.annotations.Mapper
import org.mybatis.spring.annotation.MapperScan

/**
* @author liulu
* @description 针对表【student】的数据库操作Mapper
* @createDate 2025-02-24 09:58:46
* @Entity com.liuluo.homework1025hou.domain.Student
*/
@Mapper
interface StudentMapper : BaseMapper<Student> {
    //添加学生信息
    fun addStudent(student: Student): Int;

    //删除学生信息
    fun deleteStudentById(id: Int): Int;

    //修改学生信息
    fun updateStudent(student: Student): Int;

    //获取所有学生
    fun getAllStudents(): List<Student>;

    //查询一个
    fun getStudentById(id: Int): List<Student>;

    //根据姓名查一个
    fun getStudentByUserName(username: String): List<Student>;
}




